package com.koron.order.perambulate.service;

import com.koron.order.perambulate.bean.query.CheckQuery;
import com.koron.order.perambulate.bean.query.LinePeramQuery;
import com.koron.order.perambulate.bean.query.PeramOrderQuery;
import com.koron.order.perambulate.bean.vo.LineMonitorVo;
import com.koron.order.perambulate.bean.vo.LinePerambulateVo;
import com.koron.order.perambulate.bean.vo.MonitorChangeVo;
import com.koron.order.perambulate.bean.vo.PerambulateOrderVo;
import com.koron.order.risk.base.bean.po.LineRisk;
import org.apache.ibatis.annotations.Param;
import org.koron.ebs.mybatis.SessionFactory;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface LinePerambulateService {

    List<LinePeramQuery> list(SessionFactory factory,LinePeramQuery linePeramQuery);

    LinePeramQuery getLinePeramDetailById(SessionFactory sessionFactory,String id);

    Integer BatchInsert(SessionFactory sessionFactory, List<LinePerambulateVo> list);

     List<LineRisk> getRiskSubandKeyword(SessionFactory factory);


    List<PerambulateOrderVo>  getPeramList(SessionFactory factory, PeramOrderQuery peramOrderQuery);

    Integer insert(SessionFactory factory,PerambulateOrderVo perambulateOrderVo);

    List<LineMonitorVo> monitorList(SessionFactory sessionFactory, CheckQuery checkQuery);

    LineMonitorVo getMonitorDetailById(SessionFactory sessionFactory,String id);


    Integer BatchInsert1(SessionFactory sessionFactory, List<MonitorChangeVo> monitorChangeVos);


    String getDeptByIdAndParamId(SessionFactory sessionFactory,@Param("id") String id ,@Param("typeId") String typeId);

    Integer InsertSinglePerm(SessionFactory sessionFactory, LinePerambulateVo linePerambulateVo);
}
